#include "s.h"

S::S()
{
    status = 1;
}

S::S(QImage img)
{
    cells[0] = new Cell(0,5,img);
    cells[1] = new Cell(0,4,img);
    cells[2] = new Cell(1,4,img);
    cells[3] = new Cell(1,3,img);
    status = 1;
}


void S::rotate(int d){
        cells[0]->row += status*-1,cells[0]->col += status*-1;
        cells[2]->row += status*-1,cells[2]->col += status*1;
        cells[3]->row += 0,cells[3]->col += status*2;
        status *= -1;
}
